<template>
<el-card shadow="never" class="aui-card--fill">
    <div class="mod-sys__dict">
        <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
            <el-form-item>
                <el-input v-model="dataForm.fishermanName" placeholder="渔家乐名称" clearable></el-input>
            </el-form-item>
            <el-form-item>
                <el-input v-model="dataForm.linkName" placeholder="联系人" clearable></el-input>
            </el-form-item>
            <el-form-item>
                <el-input v-model="dataForm.phone" placeholder="联系电话" clearable></el-input>
            </el-form-item>
            <el-form-item>
                <el-select v-model="dataForm.type" placeholder="请选择类型" clearable>
                    <el-option label="拼单中" :value="0">
                    </el-option>
                    <el-option label="拼单完成" ::value="1">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-button @click="getDataList()">{{ $t("query") }}</el-button>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="exportHandle()">导出</el-button>
            </el-form-item>
        </el-form>
        <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" @sort-change="dataListSortChangeHandle" style="width: 100%">
            <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>

            <el-table-column prop="fishermanName" label="渔家乐名称" header-align="center" min-width="120" align="center"></el-table-column>
            <el-table-column prop="name" label="拼单名称" header-align="center" min-width="150" align="center"></el-table-column>
            <el-table-column prop="id" label="拼单ID" header-align="center" min-width="120" align="center"></el-table-column>
            <el-table-column prop="peopleNum" label="拼单人数" header-align="center" min-width="120" align="center"></el-table-column>
            <el-table-column prop="peopleNumNow" label="当前拼单人数" header-align="center" min-width="120" align="center"></el-table-column>
            <el-table-column prop="startime" label="开船时间" header-align="center" min-width="150" align="center"></el-table-column>
            <el-table-column prop="type" label="拼单状态" header-align="center" min-width="120" align="center">
                <template slot-scope="scope">
                    <el-button :type="scope.row.type==0?'info':'success'" size="mini"> {{scope.row.type==0?'拼单中':'拼单完成'}}</el-button>
                </template>
            </el-table-column>
            <el-table-column prop="createDate" label="创建时间" header-align="center" align="center" min-width="150">
            </el-table-column>
        </el-table>
        <el-pagination :current-page="page" :page-sizes="[10, 20, 50, 100]" :page-size="limit" :total="total" layout="total, sizes, prev, pager, next, jumper" @size-change="pageSizeChangeHandle" @current-change="pageCurrentChangeHandle">
        </el-pagination>
    </div>
</el-card>
</template>

<script>
import mixinViewModule from "@/mixins/view-module";
export default {
    mixins: [mixinViewModule],
    data() {
        return {
            mixinViewModuleOptions: {
                getDataListURL: "/scenic/fishermancollage/page",
                getDataListIsPage: true,
                exportURL: "/scenic/fishermancollage/export",
            },
            dataForm: {
                fishermanName: '',
                linkName: '',
                phone: '',
                type: ''
            },
        };
    },
    components: {},
    created() {},
    methods: {

    },
};
</script>
